Optimal. Leaf size=106 \[ -\frac {d \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {i c d \left (a+b \tan ^{-1}(c x)\right )}{2 x^2}-\frac {1}{3} b c^3 d \log (x)-\frac {1}{12} b c^3 d \log (-c x+i)+\frac {5}{12} b c^3 d \log (c x+i)-\frac {i b c^2 d}{2 x}-\frac {b c d}{6 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {43, 4872, 12, 801} \[ -\frac {i c d \left (a+b \tan ^{-1}(c x)\right )}{2 x^2}-\frac {d \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {i b c^2 d}{2 x}-\frac {1}{3} b c^3 d \log (x)-\frac {1}{12} b c^3 d \log (-c x+i)+\frac {5}{12} b c^3 d \log (c x+i)-\frac {b c d}{6 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 43
Rule 801
Rule 4872
Rubi steps
\begin {align*} \int \frac {(d+i c d x) \left (a+b \tan ^{-1}(c x)\right )}{x^4} \, dx &=-\frac {d \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {i c d \left (a+b \tan ^{-1}(c x)\right )}{2 x^2}-(b c) \int \frac {d (-2-3 i c x)}{6 x^3 \left (1+c^2 x^2\right )} \, dx\\ &=-\frac {d \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {i c d \left (a+b \tan ^{-1}(c x)\right )}{2 x^2}-\frac {1}{6} (b c d) \int \frac {-2-3 i c x}{x^3 \left (1+c^2 x^2\right )} \, dx\\ &=-\frac {d \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {i c d \left (a+b \tan ^{-1}(c x)\right )}{2 x^2}-\frac {1}{6} (b c d) \int \left (-\frac {2}{x^3}-\frac {3 i c}{x^2}+\frac {2 c^2}{x}+\frac {c^3}{2 (-i+c x)}-\frac {5 c^3}{2 (i+c x)}\right ) \, dx\\ &=-\frac {b c d}{6 x^2}-\frac {i b c^2 d}{2 x}-\frac {d \left (a+b \tan ^{-1}(c x)\right )}{3 x^3}-\frac {i c d \left (a+b \tan ^{-1}(c x)\right )}{2 x^2}-\frac {1}{3} b c^3 d \log (x)-\frac {1}{12} b c^3 d \log (i-c x)+\frac {5}{12} b c^3 d \log (i+c x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.06, size = 94, normalized size = 0.89 \[ -\frac {d \left (3 i a c x+2 a+2 b c^3 x^3 \log (x)+3 i b c^2 x^2 \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-c^2 x^2\right )-b c^3 x^3 \log \left (c^2 x^2+1\right )+b c x+b (2+3 i c x) \tan ^{-1}(c x)\right )}{6 x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 111, normalized size = 1.05 \[ -\frac {4 \, b c^{3} d x^{3} \log \relax (x) - 5 \, b c^{3} d x^{3} \log \left (\frac {c x + i}{c}\right ) + b c^{3} d x^{3} \log \left (\frac {c x - i}{c}\right ) + 6 i \, b c^{2} d x^{2} - {\left (-6 i \, a - 2 \, b\right )} c d x + 4 \, a d - {\left (3 \, b c d x - 2 i \, b d\right )} \log \left (-\frac {c x + i}{c x - i}\right )}{12 \, x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 101, normalized size = 0.95 \[ -\frac {d a}{3 x^{3}}-\frac {i c d a}{2 x^{2}}-\frac {d b \arctan \left (c x \right )}{3 x^{3}}-\frac {i c d b \arctan \left (c x \right )}{2 x^{2}}-\frac {i b \,c^{2} d}{2 x}-\frac {b c d}{6 x^{2}}-\frac {c^{3} d b \ln \left (c x \right )}{3}+\frac {c^{3} d b \ln \left (c^{2} x^{2}+1\right )}{6}-\frac {i c^{3} d b \arctan \left (c x \right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 87, normalized size = 0.82 \[ -\frac {1}{2} i \, {\left ({\left (c \arctan \left (c x\right ) + \frac {1}{x}\right )} c + \frac {\arctan \left (c x\right )}{x^{2}}\right )} b c d + \frac {1}{6} \, {\left ({\left (c^{2} \log \left (c^{2} x^{2} + 1\right ) - c^{2} \log \left (x^{2}\right ) - \frac {1}{x^{2}}\right )} c - \frac {2 \, \arctan \left (c x\right )}{x^{3}}\right )} b d - \frac {i \, a c d}{2 \, x^{2}} - \frac {a d}{3 \, x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.88, size = 176, normalized size = 1.66 \[ \frac {b\,c^3\,d\,\ln \left (c^2\,x^2+1\right )}{6}-\frac {\frac {a\,d}{3}-x^5\,\left (\frac {b\,c^5\,d}{6}+\frac {a\,c^5\,d\,1{}\mathrm {i}}{2}\right )+\frac {b\,d\,\mathrm {atan}\left (c\,x\right )}{3}+\frac {c\,d\,x\,\left (b+a\,3{}\mathrm {i}\right )}{6}+\frac {c^2\,d\,x^2\,\left (2\,a+b\,3{}\mathrm {i}\right )}{6}+\frac {b\,c^4\,d\,x^4\,1{}\mathrm {i}}{2}+\frac {b\,c^2\,d\,x^2\,\mathrm {atan}\left (c\,x\right )}{3}+\frac {b\,c^3\,d\,x^3\,\mathrm {atan}\left (c\,x\right )\,1{}\mathrm {i}}{2}+\frac {b\,c\,d\,x\,\mathrm {atan}\left (c\,x\right )\,1{}\mathrm {i}}{2}}{c^2\,x^5+x^3}-\frac {b\,c^3\,d\,\ln \relax (x)}{3}-\frac {b\,d\,\mathrm {atan}\left (\frac {c^2\,x}{\sqrt {c^2}}\right )\,{\left (c^2\right )}^{3/2}\,1{}\mathrm {i}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 4.63, size = 197, normalized size = 1.86 \[ - \frac {b c^{3} d \log {\left (27 b^{2} c^{7} d^{2} x \right )}}{3} - \frac {b c^{3} d \log {\left (27 b^{2} c^{7} d^{2} x - 27 i b^{2} c^{6} d^{2} \right )}}{12} + \frac {5 b c^{3} d \log {\left (27 b^{2} c^{7} d^{2} x + 27 i b^{2} c^{6} d^{2} \right )}}{12} + \frac {\left (- 3 b c d x + 2 i b d\right ) \log {\left (i c x + 1 \right )}}{12 x^{3}} + \frac {\left (3 b c d x - 2 i b d\right ) \log {\left (- i c x + 1 \right )}}{12 x^{3}} + \frac {- 2 a d - 3 i b c^{2} d x^{2} + x \left (- 3 i a c d - b c d\right )}{6 x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________